
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:ymt/ui/login.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]).then((e){
    runApp(LaunchPage());
  });
}

class LaunchPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '易卖通',
      theme: new ThemeData.dark(),
      home: new Scaffold(
        body: new Center(
          child: new LoginPage(),
        ),
      ),
    );
  }
}
